package com.howells.time.module;

import android.app.Activity;
import android.content.Intent;

import com.howells.time.module.about.view.AboutActivity;
import com.howells.time.module.account.view.AccountActivity;
import com.howells.time.module.account.view.ChangePswActivity;
import com.howells.time.module.comment.view.CommentActivity;
import com.howells.time.module.first.view.FirstActivity;
import com.howells.time.module.login.view.LoginActivity;
import com.howells.time.module.main.view.MainActivity;
import com.howells.time.module.personal.view.UpdateInfoActivity;
import com.howells.time.module.playvideo.view.VideoActivity;
import com.howells.time.module.register.view.ForgetPswActivity;
import com.howells.time.module.register.view.ResigisterActivity;
import com.howells.time.module.sendvideo.view.NewRecordVideoActivity;
import com.howells.time.module.sendvideo.view.SelectAddressActivity;
import com.howells.time.module.sendvideo.view.SelectDateActivity;
import com.howells.time.module.sendvideo.view.SelectModeActivity;
import com.howells.time.module.setting.view.ConfigActivity;
import com.howells.time.module.setting.view.SettingActivity;

/**
 * Created by Administrator on 2016.5.8.
 */
public class UIHelper {
    public static void jumpLogin(Activity context){
        Intent intent=new Intent(context, LoginActivity.class);
        context.startActivity(intent);
        context.finish();
    }
    public static void jumpFirst(Activity context){
        Intent intent=new Intent(context, FirstActivity.class);
        context.startActivity(intent);
        context.finish();
    }
    public static void jumpMain(Activity context,Intent intent){
        intent.setClass(context,MainActivity.class);
        context.startActivity(intent);
        context.finish();
    }
    public static void jumpAccount(Activity context){
        Intent intent=new Intent(context, AccountActivity.class);
        context.startActivity(intent);
    }

    public static void jumpNewvideo(Activity context){
        Intent intent=new Intent(context, NewRecordVideoActivity.class);
        context.startActivity(intent);
    }
    public static void jumpResigister(Activity context){
        Intent intent=new Intent(context, ResigisterActivity.class);
        context.startActivity(intent);
    }

    public static void jumpChangePsw(Activity context){
        Intent intent=new Intent(context, ChangePswActivity.class);
        context.startActivity(intent);
    }
    public static void jumpUpdateInfo(Activity context){
        Intent intent=new Intent(context, UpdateInfoActivity.class);
        context.startActivity(intent);
    }
    public  static void jumpRePsw(Activity context){
        Intent intent=new Intent(context, ForgetPswActivity.class);
        context.startActivity(intent);
    }
    public static void jumpSelectMode(Activity context, Intent intent){
        intent.setClass(context, SelectModeActivity.class);
        context.startActivityForResult(intent,10001);
    }
    public static void jumpSelectAddress(Activity context, Intent intent){
        intent.setClass(context,SelectAddressActivity.class);
        context.startActivityForResult(intent,10002);
    }
    public static void jumpSelectDate(Activity context, Intent intent){
        intent.setClass(context, SelectDateActivity.class);
        context.startActivityForResult(intent,10003);
    }
    public static void jumpSetting(Activity context){
        Intent intent=new Intent(context, SettingActivity.class);
        context.startActivity(intent);
    }
    public static void jumpAbout(Activity context){
        Intent intent=new Intent(context, AboutActivity.class);
        context.startActivity(intent);
    }
    public static void jumpVideo(Activity context){
        Intent intent=new Intent(context, VideoActivity.class);
        context.startActivity(intent);
    }
    public static void jumpComment(Activity context){
        Intent intent=new Intent(context, CommentActivity.class);
        context.startActivity(intent);
    }
    public static void jumpSetServer(Activity context){
        Intent intent=new Intent(context, ConfigActivity.class);
        context.startActivity(intent);
    }
}
